<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>列表页</title>
		<link rel="stylesheet" type="text/css" href="Public/Home/css/list.css"/>
		
		<link rel="shortcut icon" href="http://www.vmall.com/favicon.ico">
		<link href="Public/Home/css/ec.css" rel="stylesheet" type="text/css">
		
		<link rel="stylesheet" type="text/css" href="Public/Home/css/index.css"/>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script src="Public/Home/js/adTop.js" type="text/javascript" charset="utf-8"></script>
		<script src="Public/Home/js/table.js" type="text/javascript" charset="utf-8"></script>
		<script src="Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.hover{
				color: #E74420;
				
			}
		</style>
	</head>
	<body class="wide detail">
		<!-- 引入公共头部 -->
		{{include file="../Common/header"}}

		
		
		
		
		
		
		<!--公共的头部结束-->
		<div id="list-header"></div>
		
		<!--列表页的顶部-->
		<div class="list-blank-10"></div>
		<div id="list-top">
			<a href="{{U('Index/index')}}">首页</a> >
			{{foreach from="$breadData" key="$key" value="$v"}}
				{{if value="$key neq (count($breadData)-1)"}}
					<a href="{{U('List/index',['cid'=>$v['cid']])}} ">{{$v['cname']}}</a> >
				{{else}}
					<span  style="cursor: text;">{{$v['cname']}}</span>
				{{endif}}
			{{endforeach}}
		</div>
		<div class="list-blank-10"></div>
		<!--列表页的顶部分类-->
		
		<!--列表页的表格部分 -->
		<div id="list-ul">
			<ul>
				<li class="list-ul-top">
					<div class="list-ul-top-title" >
						分类：
					</div>
					<a href="{{U('index',['cid'=>$topCid])}}" {{if value="$pid eq 0"}} class="hover" {{endif}}>全部</a>
					{{foreach from="$secondCate" value="$v"}}
						<a href="{{U('index',['cid'=>$v['cid']])}}"  {{if value="$_GET['cid'] == $v['cid']"}} class="hover" {{endif}}>{{$v['cname']}}</a>
					{{endforeach}}
				</li>
				
				{{foreach from="$finalAttr" key="$k" value="$v"}}
					<?php
						$temp=$param;
						$temp[$k]=0;
					?>
					<li class="list-ul-middle">
						<div class="list-ul-middle-title" >
							{{$v['name']}}：
						</div>
						<a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}" {{if value="$param[$k] eq 0"}} class="hover" {{endif}}>全部</a>		
						{{foreach from="$v['value']" value="$vv"}}
						<?php
							$temp[$k]=$vv['gtid'];
						?>
							<a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}" {{if value="$vv['gtid'] eq $param[$k]"}} class="hover" {{endif}}>{{$vv['gtvalue']}}</a>
						{{endforeach}}
					</li>
				{{endforeach}}
				
			
				<style type="text/css">
					.usertop{
						width: 1px;
						height: 1px;
						border: 3px solid transparent;
						border-bottom: 3px solid #999999;
						position: absolute;
						left: 25px;
						top: -2px;
					}
					.userbot{
					width: 1px;
					height: 1px;
					border: 3px solid transparent;
					border-top: 3px solid #999999;
					position: absolute;
					left: 25px;
					top: 8px;
					}
					
					.bgT{
						border-bottom: 3px solid red;
					}					
					.bgH{
						border-top: 3px solid red;
					}
				</style>
				<script type="text/javascript">
					$(function(){
						var i=0;
						$(".sameChose").click(function(){
							if(i==0){
								$(this).find('span').first().addClass('bgT').siblings('span').removeClass('bgH');
								i=1;
							}else{
								$(this).find('span').last().addClass('bgH').siblings('span').removeClass('bgT');
								i=0;
							}
						});
					});
				</script>

				<li class="list-ul-middle">
					<div class="list-ul-middle-title" >
						排序：
					</div>
					<a href="javascript:;"  class="hover">默认</a>

					<a href="javascript:;" >
						<span>价格</span> 
						<span >&uarr;</span>
						<span > &darr;</span>
					</a>

					<a href="javascript:;" >
						<span>评价数</span>
						<span>&darr;</span> 
					</a>

					<a href="javascript:;" >
						<span>上架时间</span> 
						<span >&uarr;</span>
						<span > &darr;</span>
					</a>
					
					
					<!--<span style="position: relative;" class="sameChose">
						<span class="usertop"></span>
						<a href="#">价格</a>
						<span class="userbot"></span>
					</span>
					
					<span style="position: relative;" class="sameChose">
						<span class="usertop" style="margin-left: 15px;"></span>
						<a href="#">评价数</a>
						<span class="userbot" style="margin-left: 15px;"></span>
					</span>
					
					<span style="position: relative;" class="sameChose">
						<span class="usertop" style="margin-left: 25px;"></span>
						<a href="#">上架时间</a>
						<span class="userbot" style="margin-left: 25px;"></span>
					</span>-->

				</li>
			</ul>
		</div>
		<!--列表页的表格结束-->
		
		<div class="list-blank-20"></div>
		
		<!--列表页产品展示（图片）区域-->
		<div id="list-show">
			<div class="list-show-background">
				<?php
					if(isset($goodsData)){
				?>
				{{foreach from="$goodsData" value="$v"}}
					<div class="list-show-background-block">
						<a href="{{U('Detail/index',['gid'=>$v['gid']])}}">
							<img src="{{$v['pic']}}"/>
							<p id="">
								{{$v['gname']}} <span style="color: #E01D20;">{{$v['desc']}}</span>
							</p>
						</a>
						<b style="cursor: text;">￥{{$v['shopprice']}}</b>
						<ul>
							<li class="list-show-background-block-ul-li">
								<a href="{{U('Detail/index',['gid'=>$v['gid']])}}">选购</a>
								<span id="">{{$v['click']}}人评价</span>
							</li>
						</ul>
					</div>
				{{endforeach}}
				<?php
					}else{
				?>
				<center><h1 style="font-size:30px">您找的商品还没有上架</h1></center>
				<?php
					}
				?>
			</div>
				
		</div>
		<!--列表页产品展示结束-->
		
		<div class="list-blank-40"></div>
		
		<!--列表页底部-->
		<div id="list-footer">
			
		</div>
		<!--列表页底部-->
		
		
		<!--公共的底部-->
		
		<footer class="footer">
    <!-- 20130902-底部-友情链接-start -->
	<div class="footer-otherLink">

	</div>
	
	<div class="footer-warrant-area">
		<p>
			<a textvalue="隐私政策" title="隐私政策" target="_blank" href="javascript:;">隐私政策</a>  
			<a title="服务协议" target="_blank" href="javascript:;">服务协议</a>       
			 Copyright © 2012-2016  ******   版权所有  保留一切权利
		</p>
		<p>
			<a target="_blank" href="javascript:;">
				<img style="width:20px;height:20px;float:none;" src="Public/Home/images/jingcha.png" title="公安备案" border="0" height="20" hspace="0" vspace="0" width="20">
				<span style="font-size:15px;font-family:宋体">
					<span style="font-size:12px;font-family:arial,helvetica,sans-serif;"> *********</span>
					<span style="font-size:12px;font-family:arial,helvetica,sans-serif;"> 32011402010009号</span>
				</span>
			</a> | 
			<a target="_blank" href="javascript:;">********09062682号-9</a> | *********经营许可证：苏B2-20130048 | 
			<a target="_blank" href="javascript:;">*******经营许可证：苏网文[2012]0401-019号</a>
		</p>
		<p><br>
		<!-- <a target="_blank" href="http://res.vmallres.com/certificate/wwwz.jpg"></a> -->
		</p>
		<p>
			<!-- <a target="_blank" href="http://www.jsgsj.gov.cn:60103/businessCheck/verifKey.do?serial=320100913201147770231720001001-SAIC_SHOW_32000020160129102316602&amp;signData=MEUCIQDjstcg6fPylz+uES4LNTcBpBVlZujS8l5erIgXiDGw1QIgfHZFK11kZ1vB2enLCwvaslyfE1fztpB19AEK4hlwibo="><img src="Public/Home/images/到.png" style="float:none;width:90px;height:32px;" title="电子营业执照" border="0" height="32" hspace="0" vspace="0" width="90"></a>  
			<a  href="javascript:;"><img style="width:90px;height:32px;float:none;" src="Public/Home/images/b1.png" title="可信网站" border="0" height="32" hspace="0" vspace="0" width="90"></a>   
			<a  href="javascript:;"><img style="width:90px;height:32px;float:none;" src="Public/Home/images/d.png" title="诚信网站" border="0" height="32" hspace="0" vspace="0" width="90"></a> -->
		</p>
	</div><!--授权结束 -->
</footer>
		
		
		
		<!--公共的底部结束-->
	</body>
</html>
